//
//  NoteCateoryMode.m
//  DogeLegs
//
//  Created by 宋华 on 2017/8/19.
//  Copyright © 2017年 宋华. All rights reserved.
//

#import "NoteCateoryMode.h"

@implementation NoteCateoryMode

+ (NSMutableArray *)noteCateoryModeFromData:(NSArray *)notes {
    if (![notes isKindOfClass:[NSArray class]]) {
        return nil;
    }
    NSMutableArray *notecats = [NSMutableArray array];
    for (NSDictionary *dict in notes) {
        NoteCateoryMode *noteMode = [NoteCateoryMode noteCateoryModeFromDict:dict];
        [notecats addObject:noteMode];
    }
    return notecats;
}


+ (NoteCateoryMode *)noteCateoryModeFromDict:(NSDictionary *)noteDict {

    if (![noteDict isKindOfClass:[NSDictionary class]]) {
        return nil;
    }
    NoteCateoryMode *noteMode = [[NoteCateoryMode alloc] init];
    //解析方法
    
    
    
    return noteMode;
}

- (NSString *)disCatName {
    if (_cateoryName.length <= 0) {
        return @"choose a category";
    }
    return _cateoryName;
}



@end
